package com.realtyManage.springboot.Service;

import com.realtyManage.springboot.Model.Do.Article;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IArticleService {

    Page<Article> findPagedByTypeAndState(Integer type, int state, Integer pageNumber, Integer pageSize);

    Article getOne(Integer artId);

    int save(Article article);

    int update(Article article);

    List<Article> findByEndTimeAndRegion(int artId);

    Page<Article> findPagedByTypeAndStateWy(Integer type, int state, Integer pageNumber, Integer pageSize);

    List<Article> getHomePage();
}
